package km4;

import java.util.Arrays;

public class CalculatorDemo {
    public static void main(String[] args) {
        useCalculator(new Calculator() {
            @Override
            public int calc(int b, int c) {
              return b*c;
            }
        });
        // Lambda表达式
       useCalculator((int b,int c)->{
             return  b*c;
            });

    }
    public static void useCalculator(Calculator Calculator){
        int sb = Calculator.calc(85415, 7964);
        System.out.println(sb);
    }
}
